package com.flyone.fuxiao.model.dto.txt2img;

import lombok.Data;

import java.util.List;

/**
 * 图像生成请求类
 *
 * @author flyone
 * @date 2024/3/9
 */
@Data
public class Txt2ImgRequest {
    /**
     * 提示
     */
    private String prompt;

    /**
     * 否定提示
     */
    private String negative_prompt;

    /**
     * 随机数种子
     */
    private int seed = -1;

    /**
     * 变异随机种子
     */
    private int sub_seed = -1;

    /**
     * 变异强度
     */
    private int subseed_strength = 0;

    /**
     * 从高度中调整种子
     */
    private int seed_resize_from_h = -1;
    /**
     * 从宽度中调整种子
     */
    private int seed_resize_from_w = -1;
    /**
     * 采样方法
     */
    private String sampler_name = "Euler a";

    /**
     * 批次大小
     */
    private int batch_size = 1;

    /**
     * 总批次
     */
    private int n_iter = 1;

    /**
     * 采样步数
     */
    private int steps = 20;

    /**
     * 提示词引导次数
     */
    private int cfg_scale = 7;

    /**
     * 分辨率-宽
     */
    private int width = 512;

    /**
     * 分辨率-高
     */
    private int height = 512;


    private boolean enable_hr = false;

    private int hr_scale = 2;

    private String hr_upscaler = "Latent";

    private double denoising_strength = 0.75;
    /**
     * 覆盖设置
     */
    private OverrideSettings override_settings;
    /**
     * 样式
     */
    private List<String> styles;
}
